//
//  TrainTableViewCell.swift
//  YueJian
//
//  Created by mac on 2017/10/19.
//  Copyright © 2017年 MapleStory. All rights reserved.
//

import UIKit

class TrainTableViewCell: UITableViewCell {
    
    let Width = UIScreen.main.bounds.width
    let Height = UIScreen.main.bounds.height

    @IBOutlet weak var oneBtn: UIButton!
    @IBOutlet weak var scroller: UIScrollView!
    
    @IBOutlet weak var fourBtn: UIButton!
    @IBOutlet weak var threeBtn: UIButton!
    @IBOutlet weak var twoBtn: UIButton!
    override func awakeFromNib() {
        super.awakeFromNib()
        
        scroller.contentSize = CGSize(width: UIScreen.main.bounds.width*4, height: 0)
        scroller.showsVerticalScrollIndicator = true
        scroller.showsHorizontalScrollIndicator = true
        scroller.isPagingEnabled = true
        for i in 0...3 {
            let imageV = UIImageView(frame: CGRect(x: Width*CGFloat(i), y: 0, width: Width, height: 180))
            imageV.image = UIImage(named: "scroller\(i)")
            scroller.addSubview(imageV)
        }
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
